package com.hujiheng.paike.service;

import com.hujiheng.paike.pojo.Course;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CourseService {
    Course getCourseById(@Param("courseId")int courseId);
    Course getCourseByName(@Param("courseName")String courseName);

    List<Course> getCourseList();

    int addCourse(Course course);

    int delCourse(int courseId);
}
